export const setUser = (state, data) {
    const {user_id: id, userName: name} = data;
    state.user = {id: id, name:name};
}
export const setLogin = (state, data) {
    state.hasLogin = !!data.hasLogin;
}
